package com.ytjj.qmyx.users.service;

import com.ytjj.qmyx.users.model.UserBalanceDto;
import com.ytjj.qmyx.users.model.UsersBalanceRecord;

import java.math.BigDecimal;
import java.util.List;

/**
 *
 *  *
 **/
public interface UserBalanceService {

    BigDecimal getMoney(Integer userId);

    void update(UserBalanceDto userBalanceDto);

    List<UsersBalanceRecord> queryMyIncomeList(Integer userId, List<String> sources);

    /**
     * 根据时间维度来查询收益信息
     * @param type 1-天 2-周 3-累计
     * @return
     */
    List<UsersBalanceRecord> queryMyIncomeListByTimeDimension(Integer userId, List<String> sources, Integer type);

    BigDecimal recordBalance(Integer userId, BigDecimal balance, String type, String source, Integer amountType);

    List queryUsersIncomeItemByUserIdAndTypeAndSource(Integer userId, String type, String source, Integer timeType);
}
